//
//  YQGoodsOrderModel.h
//  MuYing
//
//  Created by tbb on 2020/3/2.
//  Copyright © 2020 TBB. All rights reserved.
//

#import <Foundation/Foundation.h>

@class YQGoodsOrderItemModel;

NS_ASSUME_NONNULL_BEGIN

@interface YQGoodsOrderModel : NSObject
//售后ID
//@property (nonatomic, copy) NSString * refundId;

@property (nonatomic, copy) NSString * orderId;
@property (nonatomic, copy) NSString * orderSn;
@property (nonatomic, assign) NSInteger orderStatus;

//@property (nonatomic, assign) NSInteger aftersaleStatus;
//"是否是售后订单1是，0不是"
//@property (nonatomic, assign) BOOL isAftersale;
@property (nonatomic, assign) CGFloat totalMoney;
@property (nonatomic, assign) NSInteger totalGoodsNum;
@property (nonatomic, copy) NSString * createTime;
//@property (nonatomic, copy) NSString * orderType;
@property (nonatomic, assign) NSInteger orderType;
//订单类型：1->普通商品订单；2->酒店订单；3->景点订单；4->课程订单
@property (nonatomic, strong) NSArray <YQGoodsOrderItemModel *> * orderItemList;
@property (nonatomic, assign) NSInteger commentType;//0可以评价，1过了评价时间

//0 待查看 1 已查看
@property (nonatomic, copy) NSString *comment;

@end

//多件商品的model
@interface YQGoodsOrderItemModel : NSObject

@property (nonatomic, copy) NSString * skuId;
@property (nonatomic, assign) NSInteger goodsNum;
@property (nonatomic, copy) NSString * goodsName;
@property (nonatomic, copy) NSString * goodsImg;
@property (nonatomic, assign) CGFloat goodsPrice;
//实际商品支付的价格
@property (nonatomic, assign) CGFloat payAmount;

@property (nonatomic, copy) NSString * specification;
@property (nonatomic, copy) NSString * note;
@property (nonatomic, copy) NSString * standardDesc;
//用于商品评价
//是否匿名
@property (nonatomic, assign) BOOL hiddenName;
//星星个数
@property (nonatomic, assign)  CGFloat starNum;
//内容
@property (nonatomic, copy) NSString * connent;
//图片url数组
@property (nonatomic, strong) NSArray * imageUrlArr;
@property (nonatomic, strong) NSArray <UIImage *> * imageArr;

//"售后状态：-1是不可申请，0是可申请，1是已提交申请待补充物流，2是已提交待审核，3是管理员审核通过，4是管理员审核拒绝，5是用户已取消")
@property (nonatomic, copy) NSString *refundStatus;

@property (nonatomic, copy) NSString *orderItemId;

@end

NS_ASSUME_NONNULL_END
